<template>
  <div class="seek">
    <userItem v-for="item in userList" :key="item.id" :data="item" />
    <view class="loading-text">
      {{ finish ? '没有更多数据~' : '拼命加载中...' }}
    </view>
  </div>
</template>
<script setup lang="ts">
import type { UserItem } from '@/types/index/home'
import userItem from './userItem.vue'
defineProps<{ userList: UserItem[]; finish: boolean }>()
</script>
<style lang="scss" scoped>
// 加载提示文字
.loading-text {
  text-align: center;
  font-size: 28rpx;
  color: #666;
  padding: 20rpx 0;
  margin-bottom: 20rpx;
}
</style>
